package com.example.wheelguide;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ProfilePreCreateActivity extends Activity{
	Button button1;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		button1= new Button(this);
		setContentView(R.layout.profile_precreate);
		try
		{
		Database db = new Database(this);
		db.showAllProfiles();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		};
		
		
		
		
		/*
		button1 = (Button) findViewById(R.id.button_Profile_choose);
		
		button1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});*/

        button1 = (Button) findViewById(R.id.button_createProfile);

        button1.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();

            }
        });


        button1 = (Button) findViewById(R.id.button_createActiveWheel);

        button1.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();

            }
        });


        button1 = (Button) findViewById(R.id.button_createElectroWheel);

        button1.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();

            }
        });


        button1 = (Button) findViewById(R.id.button_createCompanion);

        button1.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();

            }
        });

		
		button1 = (Button) findViewById(R.id.button_back);
		
		button1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
		
			
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
